import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'my-header',
  templateUrl: './my-header.component.html',
  styleUrls: ['./my-header.component.css'],
})
export class MyHeaderComponent implements OnInit {
  constructor() {}

  ngOnInit(): void {}

  public sayHello(): void {
    console.log('这是子组件中的一个方法');
  }
}
